﻿using Nancy;

namespace TaskManagementSystem.Modules
{
    public class FrontModule : BaseNancyModule
    {
        public FrontModule()
        {
            //After.AddItemToEndOfPipeline(SetRecentBlogPosts);
            //After.AddItemToEndOfPipeline(SetTagCloud);
            //After.AddItemToEndOfPipeline(NancyCompressionExtenstion.CheckForCompression);
        }

        private void SetTagCloud(NancyContext obj)
        {
            //ViewBag.TagCould =
            //    _viewFactory.Get<TagCloudBindingModel, TagCloudViewModel>(new TagCloudBindingModel() { Threshold = 2 });
        }

        private void SetRecentBlogPosts(NancyContext obj)
        {
            //ViewBag.Recent =
            //    _viewFactory.Get<RecentBlogPostSummaryBindingModel, RecentBlogPostSummaryViewModel>(
            //        new RecentBlogPostSummaryBindingModel { Page = 10 });
        }
    }
}